package com.google.code.garbagecan.ejb3study.cdi.requestscoped;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.inject.Inject;

@Stateless (name="RequestScopedWaiter")
public class Waiter {

	@Inject
	private Soup soup;
	
	@EJB (name="RequestScopedChef")
	private Chef chef;

	public String orderSoup(String name) {
		soup.setName(name);
		return chef.prepareSoup().getName();
	}
}
